package com.android.jingweiapp.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.Expose;

/**
 * Created by cuiwenrui-pc on 15/11/6.
 */
public class LeaderBean implements Parcelable {

    public static final Parcelable.Creator<LeaderBean> CREATOR = new Parcelable.Creator<LeaderBean>() {
        public LeaderBean createFromParcel(Parcel source) {
            return new LeaderBean(source);
        }

        public LeaderBean[] newArray(int size) {
            return new LeaderBean[size];
        }
    };
    /**
     * id : 20
     * name : 王秉军
     * leaderPosition : 党组书记、主任
     * time : 2015-06-23
     * source : 内蒙古自治区经济和信息
     */

    @Expose
    private String id;
    @Expose
    private String name;
    @Expose
    private String leaderPosition;
    @Expose
    private String time;
    @Expose
    private String source;

    public LeaderBean() {

    }

    protected LeaderBean(Parcel in) {
        this.id = in.readString();
        this.name = in.readString();
        this.leaderPosition = in.readString();
        this.time = in.readString();
        this.source = in.readString();
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getLeaderPosition() {
        return leaderPosition;
    }

    public void setLeaderPosition(String leaderPosition) {
        this.leaderPosition = leaderPosition;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getSource() {
        return source;
    }

    public void setSource(String source) {
        this.source = source;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.id);
        dest.writeString(this.name);
        dest.writeString(this.leaderPosition);
        dest.writeString(this.time);
        dest.writeString(this.source);
    }
}
